<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户权限管理</title>
    <link rel="shortcut icon" href="#"/>
    <script src="/besides/lib/layui/layui.all-all.js"></script>
    <script src="/besides/lib/jquery/jquery.min.js"></script>
    <script src="/besides/js/sys/requestUtil.js"></script>
    <script src="/besides/js/sys/content-page.js"></script>
    <link href="/besides/css/base.css" rel="stylesheet">
    <link href="/besides/lib/layui/css/layui.css" rel="stylesheet">
</head>
<body>
<div id="wrapper" class="pages-white-bg" style="padding-top: 5px;padding-left: 5px;padding-bottom: 5px;padding-right: 5px;">
    <div class="">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body"
                         style="padding-top: 5px;padding-bottom: 5px;padding-right: 5px;padding-left: 5px;">
                        <form action="" class="layui-form">
                            <div class="layui-row layui-col-space10">
                                <div class="layui-col-xs11 layui-col-sm12 layui-col-md11">
                                    <div class="layui-col-xs3 layui-col-sm12 layui-col-md3">
                                        <div class="layui-input-inline">
                                            <input autocomplete="off" class="layui-input" name="userId" onblur="this.placeholder='用户ID'"
                                                   onfocus="this.placeholder=''" placeholder="用户 ID"
                                                   type="text">
                                        </div>
                                    </div>
                                    <div class="layui-col-xs3 layui-col-sm12 layui-col-md3">
                                        <div class="layui-input-inline">
                                            <input autocomplete="off" class="layui-input" name="userName" onblur="this.placeholder='用户姓名'"
                                                   onfocus="this.placeholder=''" placeholder="用户姓名"
                                                   type="text">
                                        </div>
                                    </div>
                                    <div class="layui-col-xs3 layui-col-sm12 layui-col-md3">
                                        <div class="layui-input-inline">
                                            <input autocomplete="off" class="layui-input" name="phoneNumber" onblur="this.placeholder='用户电话'"
                                                   onfocus="this.placeholder=''" placeholder="用户电话"
                                                   type="text">
                                        </div>
                                    </div>
                                    <div class="layui-col-xs3 layui-col-sm12 layui-col-md3">
                                        <div class="layui-input-inline">
                                            <input autocomplete="off" class="layui-input" name="userCode" onblur="this.placeholder='用户工号'"
                                                   onfocus="this.placeholder=''" placeholder="用户工号"
                                                   type="text">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-xs1 layui-col-sm12 layui-col-md1">
                                    <button class="layui-btn" lay-filter="btnQuery" lay-submit="">查询</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <table class="layui-hide" id="test" lay-filter="test"></table>
        <script id="barDemo" type="text/html">
            <a class="layui-btn layui-btn-xs" lay-event="permission">权限</a>
        </script>

        <script id="RoleEdit" type="text/html">
            <div class="dialog-container">
                <form class="layui-form" action="">
                    <div class="layui-form-item" id="roleAuthorityDiv">
                    </div>
                </form>
            </div>
        </script>
        <script>
            //展示列表创建时间字段类型转换
            Date.prototype.Format = function (fmt) { //author: meizz
                var o = {
                    "M+": this.getMonth() + 1,                 //月份
                    "d+": this.getDate(),                    //日
                    "h+": this.getHours(),                   //小时
                    "m+": this.getMinutes(),                 //分
                    "s+": this.getSeconds(),                 //秒
                    "q+": Math.floor((this.getMonth() + 3) / 3), //季度
                    "S": this.getMilliseconds()             //毫秒
                };
                if (/(y+)/.test(fmt))
                    fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
                for (var k in o)
                    if (new RegExp("(" + k + ")").test(fmt))
                        fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
                return fmt;
            }
        </script>
        <script id="CREATE_TIME" type="text/html">
            {{#
            var date = new Date();
            date.setTime(d.CREATE_TIME);
            return date.Format("yyyy-MM-dd hh:mm:ss");
            }}
        </script>
        <script id="ACCOUNT_STATUS" type="text/html">
            {{# if(d.state == 1 ){}}
            <input type="checkbox" lay-filter="accountStatus" name="status" value="{{d.userId}}"
                   lay-skin="switch" lay-text="生效|失效" class="layui-input" lay-event="open" checked>
            {{# }else if(d.state == 0 ){ }}
            <input type="checkbox" lay-filter="accountStatus" name="status" value="{{d.userId}}"
                   lay-skin="switch" lay-text="生效|失效" class="layui-input" lay-event="close">
            {{# }else if(d.state == -99 ){ }}
            <span>已注销</span>
            <!--<input   name="status" value="已注销" style="border:none;width: 50px"/>-->
            {{# } }}
        </script>
    </div>
    <p class="layui-color-red add-beizhu">
        <span style="color:red">
        *注：此操作页面为"用户菜单权限配置"页面，~欢迎您的使用！
        </span>
    </p>
</div>
<script src="/besides/js/sys/user-manage.js"></script>
</body>
</html>